import AppLayout from '@/core/components/layouts/AppLayout'
import IsAuth from '@/lib/auth/components/IsAuth'
import InvoiceComponent from '@/lib/invoice/components/Invoice'
import { useRouter } from 'next/router'

export default function Invoice() {
  const router = useRouter()

  return (
    <IsAuth>
      <AppLayout title='Invoice & Faktur Pajak'>
        <InvoiceComponent id={router.query.id} />
      </AppLayout>
    </IsAuth>
  )
}
